package com.jk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author jisiqi
 * @version 1.0
 * @description: TODO     团队管理表
 * @date 2022/10/17 10:57
 */
@Data
@TableName(value = "team")
@Document(indexName = "team")
public class TeamBean {

    @Id
    @TableId(value = "team_id",type = IdType.AUTO)
    @Field(value = "teamId",type = FieldType.Integer)
    private   Integer    teamId;          //团队编号

    @TableField(value = "team_img")
    private   String     teamImg;         //团队头像

    @TableField(value = "team_name")
    @Field(value = "teamName",type = FieldType.Text,analyzer = "ik_max_word")
    private   String     teamName;         //团队名称

    @TableField(value = "team_captain")
    private   String     teamCaptain;      //团队队长

    @TableField(value = "team_label")
    private   String     teamLabel;        //团队标签

    @TableField(value = "team_organization")
    private   Integer     teamOrganization;     //团队所属机构

    @TableField(value = "sign_number")
    private   Integer     signNumber;       //签约人数

    @TableField(value = "score")
    private   Double     score;             //团队评分

    @TableField(value = "team_state")
    private   Integer     teamState;        //团队状态








}
